package com.tanhua.server;

import com.github.tobato.fastdfs.domain.fdfs.StorePath;
import com.tanhua.server.service.RecommendUserService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.apache.commons.io.FileUtils;
import org.bson.types.ObjectId;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.File;
import java.io.IOException;

/**
 * @description:
 * @program: mytanhua
 * @author: Leon
 * @date: 2021-02-21 19:07
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private RecommendUserService recommendUserService;


    @Test
    public void test(){
        recommendUserService.queryTodayBest(1L);
        ObjectId objectId = ObjectId.get();
        String s = objectId+"";
        String s1 = objectId.toHexString();

        System.out.println(objectId);
        System.out.println(s);
        System.out.println(s1);
        System.out.println("-------------------");
    }
}
